<template>
  <div>
    home
    <van-button type="primary">主要按钮</van-button>
    <div class="btn"></div>
  </div>
</template>
<script>
import { getChannels } from '@/api/channel'
export default {
  name: 'Home',
  async created () {
    // getChannels().then((res) => {
    //   console.log(res)
    // })
    const [err, channels] = await getChannels()
    // if (err) throw new Error(err)
    console.log(err, channels)
  }
}
</script>

<style scoped lang="less">
  .btn {
    width: 279px;
    height: 35px;
    background: #0A328E;
    border-radius: 18px;
  }
</style>
